From: Jo-Philipp Wich Date: Thu, 10 Nov 2022 23:42:14 +0000 (+0100) Subject: luci-lua-runtime: preload luci.ltn12 X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=0141732f87d04803d499792a6039a00a3ca9eeeb;p=project%2Fluci.git luci-lua-runtime: preload luci.ltn12 Some existing legacy code expects the luci.ltn12 namespace to be implicitly available, even without requiring it beforehand. Fixes: #6091 Signed-off-by: Jo-Philipp Wich --- diff --git a/modules/luci-lua-runtime/luasrc/ucodebridge.lua b/modules/luci-lua-runtime/luasrc/ucodebridge.lua index 984fb0f7f2..d36b974a73 100644 --- a/modules/luci-lua-runtime/luasrc/ucodebridge.lua +++ b/modules/luci-lua-runtime/luasrc/ucodebridge.lua @@ -2,10 +2,11 @@ -- Licensed to the public under the Apache License 2.0. local coroutine, assert, error, type, require = coroutine, assert, error, type, require -local tmpl = require "luci.template" -local util = require "luci.util" -local http = require "luci.http" -local sys = require "luci.sys" +local tmpl = require "luci.template" +local util = require "luci.util" +local http = require "luci.http" +local sys = require "luci.sys" +local ltn12 = require "luci.ltn12" --- LuCI ucode bridge library.